﻿@model HYBYSoft.Company.Models.Links
@{
    ViewBag.Title = "Details";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutPage1.cshtml";
}
<div id="content">
    <div style="margin-top: 10px;">
    </div>
    <p>
        <span id="sitemap">当前位置：查看友情链接</span>
    </p>
    <fieldset>
        <legend>友情链接&nbsp;&nbsp;@Model.Title &nbsp;&nbsp;查看</legend>
        <div>
            <div class="display-label">
                @Html.LabelFor(model => model.Title) :
            </div>
            <div class="display-field">@Model.Title</div>
        </div>
        <div>
            <div class="display-label">
                @Html.LabelFor(model => model.Url) :
            </div>
            <div class="display-field">
                @Model.Url</div>
        </div>
        <div style =" height:60px;" >
            <div class="display-label">
                @Html.LabelFor(model => model.Icon) :</div>
            <div class="display-field">
                @{
                    if (Model.Icon == null || Model.Icon.Length == 0)
                    {
                    <span></span> 
                    }
                    else
                    {
                    <img alt="链接图标" src="/UplodeImages/@Model.Icon" width="50" height="50" />
                    }
                }
            </div>
        </div>
        <div>
            <div class="display-label">
                @Html.LabelFor(model => model.IsShow) :</div>
            <div class="display-field">
                @{
                    if (Model.IsShow == 1)
                    {
                    <span>是</span> 
                    }
                    else
                    {
                    <span>否</span> 
                    }
                }
            </div>
        </div>
        <div>
            <div class="display-label">
                @Html.LabelFor(model => model.Rank) :</div>
            <div class="display-field">
                @Model.Rank</div>
        </div>
        <div>
            <div class="display-label">
                @Html.LabelFor(model => model.Creator) :</div>
            <div class="display-field">
                @Model.Creator</div>
        </div>
        <div>
            <div class="display-label">
                @Html.LabelFor(model => model.CreateTime) :</div>
            <div class="display-field">
                @String.Format("{0:g}", Model.CreateTime)</div>
        </div>
        <div>
            <div class="display-label">
                @Html.LabelFor(model => model.Editor) :</div>
            <div class="display-field">
                @Model.Editor</div>
        </div>
        <div>
            <div class="display-label">
                @Html.LabelFor(model => model.LastEditTime) :</div>
            <div class="display-field">
                @String.Format("{0:g}", Model.LastEditTime)</div>
        </div>
    </fieldset>
    <div style="padding-left: 10px;">
        @Html.ActionLink("返回友情链接管理首页", "Index", new { page = ViewBag.PageId })
    </div>
</div>
